package com.znv.sentinelrepository;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author  pengYongQiang
 * @date 2020/7/8 15:20
 * @version 1.0
 */
@ConfigurationProperties(prefix = "znv.sentinel.metric.repository")
public class MetricRepositoryProperties {

    public final static String SENTINEL_REPOSITORY_TYPE = "znv.sentinel.metric.repository.metric-repository-type";
    public final static String AUTO_EXCLUDE_AUTO_CONFIGURATION = "znv.sentinel.metric.repository.auto-exclude-auto-configuration";

    private MetricRepositoryType metricRepositoryType;

    /*
     * 自动排除自动配置
     * true : 启动
     */
    private boolean autoExcludeAutoConfiguration = true;

    public MetricRepositoryType getMetricRepositoryType() {
        return metricRepositoryType;
    }

    public void setMetricRepositoryType(MetricRepositoryType metricRepositoryType) {
        this.metricRepositoryType = metricRepositoryType;
    }

    public boolean getAutoExcludeAutoConfiguration() {
        return autoExcludeAutoConfiguration;
    }

    public void setAutoExcludeAutoConfiguration(boolean autoExcludeAutoConfiguration) {
        this.autoExcludeAutoConfiguration = autoExcludeAutoConfiguration;
    }
}
